const { Service } = require("egg");

class UserService extends Service {
	async find({ account, password }) {
		const user = await this.app.mysql.get("user", { account, password });
		return user;
	}
	async insert(data) {
		const result = await this.app.mysql.insert("user", data);
		return result;
	}
}

module.exports = UserService;
